#include "LocalObject.h"

void LocalObject::initialize(const Vector& t, const double ax, const double az) {
	localToGlobal = Matrix::rotation_z(az) * Matrix::rotation_x(ax) * Matrix::translation(t);
	
	Vector v = Vector(t);
	v.inverse();
	globalToLocal = Matrix::translation(v) * Matrix::rotation_x(-ax) * Matrix::rotation_z(-az);
}
